//获取应用实例
var app = getApp();
Page({
    data: {
	    "isShowFootNav": false,
        isShowPage:false
    },
    onLoad: function (option) {
        var pageObj = this;
        var opt = {
            url: app.globalData.host+"/wx/cn/detail.ajax",
            data: {
                'orderId': option.orderId
            },
            sucFn:function (result) {
                var progressList = [];
                for(var i=0;i<result.body.processlist.length;i++){
                    var json = {
                        "name": result.body.processlist[i].name,
                        "createTime": app.toYMDHMSDate(result.body.processlist[i].createTime)
                    };
                    progressList.push(json);
                }

                pageObj.setData({
                    isShowPage:true,
                    "carNbr":result.body.carNbr||"",
                    "orderId":result.body.orderId,
                     progressList:progressList
                });
            }
        };
        app.ajax(opt);
    }
});
